<?php
/**
 * Class descript.
 * User: rowan
 * Date: 2017/11/1 17:07
 */

namespace app\api\controller;

class Gethxtoken extends Base
{
  //检查权限作用域
  protected $beforeActionList  = [
    'checkPrimaryScope' => [
        'except' => 'except'
    ],
  ];

  //获取hx_token
  public function hxToken(){
    $hxToken =  (new \app\api\logic\Gethxtoken())->hxToken();
    return $this->ajaxReturn($hxToken);
  }

  public function hxcreateUser(){
    $hxcreateUser =  (new \app\api\logic\Gethxtoken())->hxcreateUser();
    return $this->ajaxReturn($hxcreateUser);
  }
}